﻿/*==============================
版本：v0.1
创建：2016.4.30
作者：洞庭夕照
博客:http://mzwhj.cnblogs.com
代码：https://git.oschina.net/ninesky/Ninesky
==============================*/
using System.ComponentModel.DataAnnotations;

namespace Ninesky.Core.Content
{
    /// <summary>
    /// 内容类型
    /// </summary>
    public class ContentType
    {
        [Key]
        public int ContentTypeID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Required()]
        [Display(Name = "名称")]
        public string Name { get; set; }

        /// <summary>
        /// 控制器名称
        /// </summary>
        [Required()]
        [Display(Name = "控制器名称")]
        public string Controller { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        [StringLength(1000, ErrorMessage = "必须少于{1}个字")]
        [Display(Name = "说明")]
        public string Description { get; set; }
    }
}
